package weapon;

import com.item.manager.repository.TemplateRepository;

public class WeaponProvider {
    private final TemplateRepository repo;

    public WeaponProvider(TemplateRepository repo) {
        this.repo = repo;
    }

    public Weapon create(String name) {
        return new Weapon(this.repo.byName(name));
    }
}
